package com.ruoyi.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 百度OCR 配置类
 * 主要做图片识别，二维码内容提取
 */

@Component
@ConfigurationProperties(prefix = "baidu.ocr")
public class BaiduOcrApiConfig {
    private static String appId;
    /** 百度OCR接口凭证*/
    private static String apiKey;
    /** 百度OCR 接口凭证*/
    private static String secretKey;


    public static String getAppId() {
        return appId;
    }
    public void setAppId(String appId) {
        BaiduOcrApiConfig.appId = appId;
    }

    public static String getApiKey() {
        return apiKey;
    }
    public void setApiKey(String apiKey) {
        BaiduOcrApiConfig.apiKey = apiKey;
    }

    public static String getSecretKey() {
        return secretKey;
    }
    public void setSecretKey(String secretKey) {
        BaiduOcrApiConfig.secretKey = secretKey;
    }



}
